#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  first.py
#       Author @  Huoty
#  Create date @  2016-05-09 11:21:43
#  Description @  
# *************************************************************

import tornado.ioloop
import tornado.web

class MainHandler(tornado.web.RequestHandler):
    def get(self):
        self.write("Hello, world")

application = tornado.web.Application([
    (r"/", MainHandler),
])

# Script starts from here

if __name__ == "__main__":
    application.listen(8888, "0.0.0.0")
    #tornado.ioloop.IOLoop.instance().start()
